#ifndef FRMUSERLIST_H
#define FRMUSERLIST_H

#include <QWidget>
#include "devicesizetable.h"
#include "frmusermodify.h"

class QAbstractButton;
namespace Ui {
class FrmUserlist;
}

class FrmUserlist : public QWidget
{
    Q_OBJECT

public:
    explicit FrmUserlist(QWidget *parent = 0);
    ~FrmUserlist();

private:
    Ui::FrmUserlist *ui;
    QList<QAbstractButton *> btnsLeft;
    QList<int> iconMains;
private:
    void initForm();
    QString writeJson();
    QString readJson();

private slots:
    void topbtnClicked();
    void on_btnAdd_clicked();
    void on_btnEdit_clicked();
    void on_btnDelete_clicked();
    void on_btnWriteJson_clicked();
    void on_btnReadJson_clicked();
    void updateForm();
};

#endif // FRMUSERLIST_H
